package com.sangu.dianxiu.bean.user;

import java.io.Serializable;
import java.util.List;

/**
 * 联系人类
 * Created by sg2 on 2016/1/11.
 */
public class ContactEntity implements Serializable{

    /**
     * rc : 0
     * contacts : [{"id":52,"name":"罗志磊 ","phone":"13867448136","isDefault":false}]
     */

    private int rc;
    /**
     * id : 52
     * name : 罗志磊
     * phone : 13867448136
     * isDefault : false
     */

    private List<ContactsEntity> contacts;

    public void setRc(int rc) {
        this.rc = rc;
    }

    public void setContacts(List<ContactsEntity> contacts) {
        this.contacts = contacts;
    }

    public int getRc() {
        return rc;
    }

    public List<ContactsEntity> getContacts() {
        return contacts;
    }

    public static class ContactsEntity {
        private int id;
        private String name;
        private String phone;
        private boolean isDefault;

        public void setId(int id) {
            this.id = id;
        }

        public void setName(String name) {
            this.name = name;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public void setIsDefault(boolean isDefault) {
            this.isDefault = isDefault;
        }

        public int getId() {
            return id;
        }

        public String getName() {
            return name;
        }

        public String getPhone() {
            return phone;
        }

        public boolean isIsDefault() {
            return isDefault;
        }
    }
}
